package com.act.vo;

import java.util.List;

/**
 * 分页
 * @param <T>
 */
public class PagerVo<T> {

    private int pageIndex;
    private int pageSize;
    private int totalCounts;
    private List<T> items;

    public int getTotalCounts() {
        return totalCounts;
    }

    public void setTotalCounts(int totalCounts) {
        this.totalCounts = totalCounts;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }

    public PagerVo() {

    }

    public PagerVo(int pageIndex, int pageSize, int totalCounts, List<T> items) {
        if (items == null || items.size() < 0) {
            return;
        }
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.totalCounts = totalCounts;
        this.items = items;
    }
}
